package com.zenith.article.po.domain;

import com.zenith.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "文章阅读日志实体", description = "文章阅读日志实体")
public class ArtReadLog extends BaseEntity {
    
    @Schema(description = "文章ID")
    private Long articleId;
    
    @Schema(description = "阅读用户ID（游客为空）")
    private Long userId;
    
    @Schema(description = "会话标识")
    private String sessionId;
    
    @Schema(description = "阅读者IP")
    private String ip;
    
    @Schema(description = "阅读者UserAgent")
    private String ua;
    
    @Schema(description = "来源URL")
    private String referer;
    
    @Schema(description = "阅读时间")
    private LocalDateTime createTime;
}